<template>
  <el-card shadow="never">
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="生成代码" name="first">
        <code-gen-list></code-gen-list>
      </el-tab-pane>
      <el-tab-pane label="全局设置" name="second">
        <code-gen-config></code-gen-config>
      </el-tab-pane>
    </el-tabs>
  </el-card>
</template>

<script lang="ts" setup>
import {ref} from 'vue'
import type {TabsPaneContext} from 'element-plus'
import CodeGenList from "@/views/system/gen/CodeGenList.vue";
import CodeGenConfig from "@/views/system/gen/CodeGenConfig.vue";

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  // console.log(tab, event)
}
</script>

<style scoped>
.demo-tabs > .el-tabs__content {
  padding: 32px;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
}
</style>